<template>
  <el-card class="card-search">
    <el-row type="flex">
      <el-form class="demo-form-inline searchForm">
        <el-row type="flex">
          <!-- 人员搜索插槽 -->
          <span>
            <slot name="peopleSearch" />
          </span>
          <!-- 角色下拉框 -->
          <span v-if="showSearch">
            <slot name="roleSelect" />
          </span>
        </el-row>
      </el-form>
    </el-row>
  </el-card>
</template>

<script>
import EmployeeEnum from '@/constant/employees'

export default {
  name: 'Index',
  props: {
    showSearch: {
      type: Boolean,
      default: false
    }

  },
  data() {
    return {
      // 声明枚举数据(要在data里面)
      EmployeeEnum

    }
  },

  mounted() {

  },

  methods: {
    // getTaskList() {
    //   console.log(this.formInline)
    //   // 给父组件传参数和方法
    //   this.$emit('getTaskList', this.formInline)
    // }
  }
}
</script>

<style lang="scss" >

.card-search {
  // width: 100%;
    // margin: 10px;
  // width: 80%;
    margin-bottom: 10px;
    .CXButton {
    margin-left:10px ;
}
  }
</style>
